package com.lee.crawler.gov.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lee.crawler.gov.bean.CrawlerArticle;
import com.lee.crawler.gov.dao.CrawlerArticleDao;

@Service
public class CrawlerArticleService {
	
	@Autowired
	private CrawlerArticleDao crawlerArticleDao;
	
	public void insertBatch(List<CrawlerArticle> list){
		crawlerArticleDao.insertBatch(list);
	}

	
	public void insertTemplate(CrawlerArticle entity){
		crawlerArticleDao.insertTemplate(entity);
	}
}
